package cn.kk.springboot01.demo.comon;
/*
 *@author KK on 2022.10.09 20:20
 */

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.view.InternalResourceViewResolver;

@Configuration
public class MyConfig implements WebMvcConfigurer {
    @Bean
    public InternalResourceViewResolver getInternalResourceViewResolver(){
        return new InternalResourceViewResolver("/",".jsp");
    }
}
